from common.locate_by import By

class LocPlanTextList:

    loc_add = {
        "loc_role": By.button,
        "loc_name": "新 增",
    }

    loc_import = {
        "loc_role": By.button,
        "loc_name": "预案导入",
    }

    loc_search = {
        "loc_role": By.button,
        "loc_name": "查 询",
    }

    loc_reset = {
        "loc_role": By.button,
        "loc_name": "重 置",
    }

    loc_detail = {
        "loc_role": By.button,
        "loc_name": "查 看",
    }

    loc_edit = {
        "loc_role": By.button,
        "loc_name": "修 订",
    }

    loc_assess = {
        "loc_role": By.button,
        "loc_name": "评 估",
    }

    loc_delete = {
        "loc_role": By.button,
        "loc_name": "删 除",
    }

    loc_sure = {
        "page_role": By.dialog,
        "page_title": "提示",
        "loc_role": By.button,
        "loc_name": "确定",
    }

    loc_cancel = {
        "page_role": By.dialog,
        "page_title": "提示",
        "loc_role": By.button,
        "loc_name": "取消",
    }

    loc_close = {
        "page_role": By.dialog,
        "page_title": "提示",
        "loc_role": By.button,
        "loc_name": "关闭此对话框",
    }

    loc_search_name = {
        "loc_role": By.textbox,
        "loc_name": "预案名称:",
    }
    loc_search_publish_org_id = {
        "loc_role": By.textbox,
        "loc_name": "发布单位:",
    }
    loc_search_type = {
        "loc_role": By.combobox,
        "loc_name": "预案类型:",
    }
    loc_search_level = {
        "loc_role": By.combobox,
        "loc_name": "预案级别:",
    }
    loc_search_revision_status = {
        "loc_role": By.combobox,
        "loc_name": "修订状态:",
    }
    loc_search_evaluation_status = {
        "loc_role": By.combobox,
        "loc_name": "评估状态:",
    }
    loc_search_publish_time = {
        "loc_role": By.group,
        "loc_name": "发布时间:",
        'child': [
            {
                'loc_role': By.combobox,
                'loc_name': '开始'
            },
            {
                'loc_role': By.combobox,
                'loc_name': '结束'
            }
        ]
    }

    loc_publish_number = {
        "loc_role": By.columnheader,
        "loc_name": "预案发布文号:",
    }
    loc_name = {
        "loc_role": By.columnheader,
        "loc_name": "预案名称:",
    }
    loc_type = {
        "loc_role": By.columnheader,
        "loc_name": "预案类型:",
    }
    loc_level = {
        "loc_role": By.columnheader,
        "loc_name": "预案级别:",
    }
    loc_publish_org_id = {
        "loc_role": By.columnheader,
        "loc_name": "发布单位:",
    }

    loc_drill_duration = {
        "loc_role": By.columnheader,
        "loc_name": "距上次预案演练时长:",
    }
    loc_analysis_status = {
        "loc_role": By.columnheader,
        "loc_name": "解析状态:",
    }
    loc_revision_status = {
        "loc_role": By.columnheader,
        "loc_name": "修订状态:",
    }
    loc_evaluation_status = {
        "loc_role": By.columnheader,
        "loc_name": "评估状态:",
    }
